package com.yzf.demo.demo.ReflectionMechanism;

/**
 * Created by 于占峰 on 2020/3/24/024.
 */
public class GetModifiers {
    /**
     * class.getModifiers() 返回类的修饰符 int类型值
     * public static final int	ABSTRACT	1024
     * public static final int	FINAL	16
     * public static final int	INTERFACE	512
     * public static final int	NATIVE	256
     * public static final int	PRIVATE	2
     * public static final int	PROTECTED	4
     * public static final int	PUBLIC	1
     * public static final int	STATIC	8
     * public static final int	STRICT	2048
     * public static final int	SYNCHRONIZED	32
     * public static final int	TRANSIENT	128
     * public static final int	VOLATILE	64
     **/
    public static void main(String[] args) {
        Class clazz = DemoBean.class;
        int mdifiers = clazz.getModifiers();
        System.out.println(mdifiers);
    }
}
